#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
//#include <QTcpServer>
#include <QTcpSocket>
#include <QString>
QT_BEGIN_NAMESPACE
namespace Ui {
    class Client;
}
QT_END_NAMESPACE

class Client : public QWidget
{
    Q_OBJECT

public:
    Client(QString serverIP, QString serverID,QString myID, QWidget *parent = nullptr);

    ~Client();

private:
    Ui::Client *ui;    //添加的对象
    QString serverIP;
    QString serverID;
    QString myID;
    QTcpSocket *tcpSocket;

private slots:
    void connected_Slot();    //添加的槽函数
    void readyRead_Slot();
    //void on_openButton_clicked();
    //void on_closeButton_clicked();
    void on_sendButton_clicked();

    void on_SendFileButton_clicked();
    void on_recvButton_clicked();
    void on_disconnected();
};
#endif // WIDGET_H
